﻿<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>兼职乐-快乐生活，快乐工作，尽在兼职乐</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=9">
<!-- 引入 Bootstrap -->
<script src='__MYINDEXJS__jquery-1.8.3.min.js'></script>
<link href="__MYINDEXCSS__bootstrap.min.css" rel="stylesheet">
<link href="__MYINDEXCSS__newpc.css" rel="stylesheet">
<link href="__MYINDEXCSS__datepicker.css" rel="stylesheet">
<script src='jquery-1.7.2-min.js'></script>
<script src="__MYINDEXJS__jquery.js"></script>
<script src="__MYINDEXJS__lepin_ajax.js"></script>
<script src="__MYINDEXJS__lepin.js"></script>
<script src="__MYINDEXJS__zepto.min.js"></script>
<script src="__MYINDEXJS__frozen.js"></script>
<script type="text/javascript" src="__MYINDEXJS__laydate.js"></script>
<script src="__MYINDEXJS__common2.js"></script>
     <style>
        .pagination{text-align:center;margin-top:20px;margin-bottom: 20px;}  
        .pagination li{margin:0px 10px; border:1px solid #e6e6e6;padding: 3px 8px;display: inline-block;}  
        .pagination .active{background-color: #dd1a20;color: #fff;}  
        .pagination .disabled{color:#aaa;}  
        .mf{margin-left: 20px;}
    </style>
      <script>
         function go(obj){
            // console.log(obj.getAttribute('data-uid'));
            var uid = obj.getAttribute('data-uid');
            $.ajax({
                url: "{:url('index/resume/getmessage')}",
                timeout: 5000,
                type: "post",
                data:{"uid":uid},
                dataType: "json",
                error:function(){
                    alert('系统繁忙,请稍后再试...');
                },
                success:function(data){
                    // console.log(data.height);
                    $('#s1').html('姓名:'+data.username);
                    $('#s2').html('电话:'+'18241201411');
                    $('#s3').html(data.sex==0?'性别:女':'性别:男');
                    $('#s4').html('年龄:'+data.brithday);
                    $('#s5').html('体重:'+data.weight+'/kg');
                    $('#s6').html('身高:'+data.height+'/cm');
                    $('#s7').html('学历:'+data.education);
                    $('#s8').html('学校:'+data.school);
                    $('#s9').html('入学时间:'+data.admissiontime);
                    $('#s10').html('求职意向:'+data.jobintension);
                    $('#s11').html('工作城市:'+data.jobcity);
                    $('#s12').html('工作经验:'+data.jobexperience);
                    $('#s13').html('工作城市:'+data.selfdescribe);
                    $('#applyid').val(obj.getAttribute('data-id'));
                }
            });
        }

    </script>
</head>

<body>
<div class="nav_top">
    <div class="container">
        <a class="pull-right" href="index.php?act=about">关于我们</a>
                <span class="pull-right mr15">欢迎,{$Think.session.tel}<a href="login.php?act=login_out" class="ml10">[注销]</a></span>
            </div>
</div>

<div class="navbar nav01"  >
    <div class="container">
        <div class="navbar-header">
            <button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="sr-only">兼职乐</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <span class="navbar-brand clearfix">
                <a href="{:url('index/index/index')}"><img class="pull-left" src="__MYINDEXPIC__/logo.jpg"></a>
            </span>
        </div>
        <div class="navbar-collapse collapse" role="navigation">
            <a href='{:url("index/part/addPart")}' class="btn btn-danger pull-right mt10 hidden-xs" style="color:#fff">发布新职位</a>
                <ul class="nav navbar-nav mt10 ml10">
                
                <li ><a href="{:url('index/company/index')}">公司主页</a></li>
                <li ><a href="{:url('index/part/position')}">职位管理</a></li>
                <li class="cur"><a href="{:url('index/resume/index')}">简历库</a></li>
                <li ><a href="{:url('index/company/center')}">个人中心</a></li>
            </ul>
        </div>
    </div>
</div>


<div class="container">
            <div class="jl_memu">
                <a class="cur" href="{:url('index/resume/index')}">投递简历</a>
                <a  href="{:url('index/resume/invitation')}">邀请人才</a>
                <a  href="{:url('index/resume/mytalent')}">我的人才库</a>
            </div>

       
        <div class="box01">

        <div class="tabbable resume mt20 clearfix">
            <ul class="nav nav-tabs pull-left mt5">
                <li class="borig"><a class="borig" href="{:url('index/resume/index')}">待处理</a></li>
                <li class="borig"><a href="{:url('index/resume/luru')}">已录用人员</a></li>
                <li class="active"><a href="{:url('index/resume/jujue')}">已拒绝人员</a></li> 
            </ul>
                        
        </div>

        <div class="tab-content mt10">
            <div class="tabox tab-pane active" id="panel01">
                <table class="table table-bordered text-center table-striped">
                    <thead>
                        <tr bgcolor="#5dcdbf">
                            <th>序号</th>
                            <th>姓名</th>
                            <th>投递时间</th>
                            <th>职位名称</th>
                            <th>家庭地点</th>
                            <th>操作</th>
                        </tr>
                        {volist name='list' id='v' key='k'}
                        <tr id='{$v.id}'>
                            <td>{$v.id}</td>
                            <td>{$v.name}</td>
                            <td>{:date('Y-m-d H:i:s',$v.addtime)}</td>
                            <td>{$cname[$k-1]}</td>
                            <td>{$v.address}</td>
                            <td><a href="#myModal" role="button" class="btn" data-toggle="modal" data-id="{$v.id}" data-uid="{$v.uid}" onclick='go(this)'>查看简历</a></td>
                        </tr>
                        {/volist}
                    </thead>
                    <tbody>
                </tbody>
                </table>
            </div>
            <div class="text-center">
                <!-- 分页 -->
            {$list->render()}
            </div>

        </div>    
    </div>
</div>


<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">个人简历</h4>
      </div>
      <div class="modal-body">
        <span style='font-size:25px;color:#f00'>个人信息</span><br>
        <span id='s1'></span>
        <span class='mf' id='s2'></span>
        <span class='mf' id='s3'></span>
        <span class='mf' id='s4'></span>
        <span class='mf' id='s5'></span><br><br>
        <span id='s6'></span>
        <span class='mf' id='s7'></span>
        <span class='mf' id='s8'></span>
        <span class='mf' id='s9'></span><br><br>
        <span style='font-size:25px;color:#f00'>求职相关</span><br>
        <span id='s10'></span>
        <span class='mf' id='s11'></span><br><br>
        <span id='s12'></span><br><br>
        <span id='s13'></span><br>
        <input type="hidden" name='id' value='' id='applyid'>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-danger" id='lr'>重新录用</button>
        <!-- <button type="button" class="btn btn-primary" id='jj'>拒绝</button> -->
      </div>
    </div>
  </div>
</div>
<script>
    $(function(){
        $('#lr').click(function(){
            var id = $('#applyid').val();
            // alert(1);
            $.ajax({
                url:"{:url('index/resume/resume')}",
                type:'get',
                dataType:'json',
                data:{"id":id},
                success:function(rs){
                    if(rs.code==0){
                        alert(rs.msg);
                    }  
                    $('#myModal').modal('hide')      
                    $('#'+id).remove();       
                },
                error:function(){
                    alert('服务器繁忙,请稍后...');
                }  
            })

        })
    })
</script>

<div class="foot mt20">
    <div class="container"><p class="text-center">©2015 河北乐聘人力资源服务有限公司 丨 快速到岗、高效匹配的兼职平台 丨 冀ICP备15013734</p></div>
</div>
    <script src="__MYINDEXJS__jquery.min.js"></script>
    <script src="__MYINDEXJS__bootstrap.min.js"></script>
</body>
</html>


